package com.dd.cloud.user.entity.pres;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 康美处方药房回调流转表
 * </p>
 *
 * @author czg
 * @since 2022-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(comment = "华润处方药房回调流转表")
public class PresHrPharRoam implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 自增id号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 处方编号
     */
    @Column(length = 128, comment = "处方编号")
    private String tencode;

    /**
     * 处方状态
     */
    @Column(length = 4, comment = "状态 2.待审核 21.审核失败 6.煎煮中及已煎药 8.发货 9.已完成/物流完成 -2 异常 0 取消")
    private Integer status;

    /**
     * 订单编号
     */
    @Column(length = 32, comment = "订单编号(药房的编号)")
    private String tcmOrderNo;

    /**
     * 失败的原因
     */
    @Column(length = 512, comment = "审核失败原因")
    private String reason;


    /**
     * 返回的结果集
     */
    @Column(type = MySqlTypeConstant.TEXT, comment = "返回的结果JSON保存")
    private String result;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;
}
